package com.yike.product.service;

import com.yike.product.entity.GoodsUnit;
import com.yike.product.param.GoodsUnitPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;
import com.yike.product.param.GoodsUnitParam;
import com.yike.product.vo.GoodsUnitVo;

/**
 * 商品单位 服务类
 *
 * @author Sakura
 * @since 2024-10-18
 */
public interface GoodsUnitService extends BaseService<GoodsUnit> {

    /**
     * 保存
     *
     * @param goodsUnitParam
     * @return
     * @throws Exception
     */
    boolean saveGoodsUnit(GoodsUnitParam goodsUnitParam) throws Exception;

    /**
     * 修改
     *
     * @param goodsUnitParam
     * @return
     * @throws Exception
     */
    boolean updateGoodsUnit(GoodsUnitParam goodsUnitParam) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteGoodsUnit(Long id) throws Exception;

    GoodsUnitVo getGoodsUnit(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param goodsUnitPageParam
     * @return
     * @throws Exception
     */
    Paging<GoodsUnitVo> getGoodsUnitPageList(GoodsUnitPageParam goodsUnitPageParam) throws Exception;

}
